<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8" />
	<title>书店管理系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="/public/css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="/public/css/swiper.min.css" />
	<link href="http://cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet" media="all">
	<link href="/public/css/bootstrap-touch-slider.css" rel="stylesheet" media="all">
	<link rel="stylesheet" type="text/css" href="/public/css/pc.css" />
	<link rel="stylesheet" type="text/css" media="screen and (max-width:1200px)" href="/public/css/ipad.css">
	<link rel="stylesheet" type="text/css" media="screen and (max-width:768px)" href="/public/css/phone.css">
	<script type="text/javascript" src="/public/js/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="/public/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="/public/js/swiper.min.js"></script>
	<script type="text/javascript" src="/public/js/scrollReveal.js"></script>
	<script src="http://cdn.bootcss.com/jquery.touchswipe/1.6.18/jquery.touchSwipe.min.js"></script>
	<script src="/public/js/bootstrap-touch-slider-min.js"></script>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=Diy1GpUowSnG4kyw93KWvG4GfQDm3xch"></script>

	<!-- 地区插件 -->
	<script src="/public/js/distpicker.data.js"></script>	
	<script src="/public/js/distpicker.js"></script>
	<script src="/public/js/main.js"></script>	

	<script type="text/javascript" src="/public/js/jquery.cookie.js"></script>
	<script type="text/javascript" src="/public/js/base64.js"></script>
	<script type="text/javascript" src="/public/js/xiuzhen.js"></script>
	<script>
		if ($(document.body).width() < 760) {
			// document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
		} else {
			document.documentElement.style.fontSize = document.documentElement.clientWidth / 1 + 'px';
		}
	</script>
	<!--兼容ie8-->
	<!--[if lt IE 9]>
	    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<!-- 头部导航开始 -->
	<div class="header">
		<div class="nav">
			<img class="logo" src="/public/images/logo.png" alt="">
			<ul class="top">
				<li>
					<a href="index.html">首页</a>
				</li>
				<li>
					<a href="box.html">图书展示</a>
				</li>
				<li>
					<a href="labOne.html">图书资讯</a>
					
				</li>
				
				<li>
					<a href="about.html">关于我们</a>
				</li>
				<li>
					<a href="contact.html">联系我们</a>
				</li>
			</ul>
			<div class="right">
				<a href="login.html" class="login">会员登陆</a>
				
				<a class="indexCart" href="cart.html">
					<img class="cart" src="/public/images/cart.png" alt="">
				</a>
				<a class="leaguer" href="member.html" style="display: none;">
					<img class="" src="/public/images/people2.png" alt="">
				</a>
				<p id="username" style="display: none;"></p>
				<!-- <p class="line"></p>
				<img class="weixin" src="images/weixin.png" alt=""> -->
			</div>
		</div>
	</div>

	<!-- 子页面中间banner样式 -->
	<div class="com-banner">
		<img src="/public/images/maker-banner.png" alt="">
		<div class="content">
			<p class="china">创客课程</p>
			<p class="english">Creation course</p>
			<p class="line"></p>
		</div>
	</div>	

	<!-- 子页面位置公共样式 -->
	<div class="com-position maker-position">
		<p class="container">
			<span>当前位置：</span>
			<a href="javascript:;">首页</a> >
			<a href="javascript:;">创客课程</a>
		</p>
	</div>
	
	<!-- 创客课程页面 -->
	<div class="maker">
		<div class="list list1">
			<p class="title">创客课程</p>
			<p class="line"></p>
			<p class="des">“创客课程”为机构、幼儿园和小学提供“课程包”，包括课程教案、视频、学具、绘本等；课程有《少儿编程课》《创客设计课》《科学课》《益智模型课》</p>
			<div class="container">
				<!-- <div class="item">
					<img class="img" src="images/maker11.png" alt="">
					<div class="shadow">
						<img src="images/code1.png" alt="">
						<p>扫码查看详情</p>
					</div>
				</div>
				<div class="item">
					<img class="img" src="images/maker12.png" alt="">
					<div class="shadow">
						<img src="images/code1.png" alt="">
						<p>扫码查看详情</p>
					</div>
				</div>
				<div class="item">
					<img class="img" src="images/maker13.png" alt="">
					<div class="shadow">
						<img src="images/code1.png" alt="">
						<p>扫码查看详情</p>
					</div>
				</div>
				<div class="item">
					<img class="img" src="images/maker14.png" alt="">
					<div class="shadow">
						<img src="images/code1.png" alt="">
						<p>扫码查看详情</p>
					</div>
				</div> -->
			</div>
		</div>
		<div class="list list2">
			<p class="title">爱乐猫未来课堂+</p>
			<p class="line"></p>
			<p class="des">爱乐猫为幼儿园和小学提供创客空间解决方案，集合了空间设计、配套课程、创客教具，指导用书，师资培训、
创客竞赛等服务，帮助你成功打造一个集教学、展示、分享、交流于一体的儿童创客空间，助力幼儿园和机构形成特色品牌。</p>
			<div class="container">
				<div class="item">
					<div class="img-box">
						<img src="/public/images/maker21.png" alt="" />
						<div class="shadow">
							<p>提供空间布局设计图提供标准的装修方案提供创客教具材料</p>
						</div>
					</div>
					<p class="name">创客空间解决方案</p>
				</div>
				<div class="item">
					<div class="img-box">
						<img src="/public/images/maker22.png" alt="" />
						<div class="shadow">
							<p>提供《创客设计课》《少儿编程课》《益智模型课》《科学课》</p>
						</div>
					</div>
					<p class="name">四大课程体系</p>
				</div>
				<div class="item">
					<div class="img-box">
						<img src="/public/images/maker23.png" alt="" />
						<div class="shadow">
							<p>提供配套的教学指南指派老师进行教学提供师资培训同时也提供师资培训</p>
						</div>
					</div>
					<p class="name">专业系统的教师支持</p>
				</div>
				<div class="item">
					<div class="img-box">
						<img src="/public/images/maker24.png" alt="" />
						<div class="shadow">
							<p>组织小创客主题赛事开展html主题夏令营</p>
						</div>
					</div>
					<p class="name">完善的服务支持体系</p>
				</div>
			</div>
		</div>
		<div class="list list3">
			<p class="title">夏令营、冬令营活动回顾</p>
			<p class="line"></p>
			<div class="wheel">
				<div class="swiper-container">
				    <div class="swiper-wrapper">
				      	<!-- <div class="swiper-slide">
				      		<img src="images/maker31.jpg"/>
				      	</div>
				      	<div class="swiper-slide">
				      		<img src="images/maker31.jpg"/>
				      	</div> -->
				    </div>
				    <!-- Add Arrows -->
				    <div class="swiper-button-next"></div>
				    <div class="swiper-button-prev"></div>
				 </div>
			</div>
		</div>
	</div>

	<!-- 预约弹框样式 -->
	<div class="appointShadow"></div>


	<!-- 右侧弹框 -->
	<div class="rightFrame">
		<div class="bespoke"><a href="saleApply.html">代售申请</a></div>
		<div class="placement"><img src="/public/images/top.png" alt="">置顶</div>
	</div>

	<!-- 弹框样式 -->
	<div class="alert-box">
		<span class="xz-alert alert alert-danger"></span>
	</div>

	<!-- 公共底部开始 -->
	<div class="footer">
		<div class="footer-content1">
			<div></div>
		</div>
		<div class="footer-content">
			<div class="container">
				<div class="content">
					<div class="left">
						<img class="bottom-logo" src="/public/images/logo.png" alt="">
						<p class="des">此网站为不仅为人们提供了便利的购书平台，还在此基础上增加了代售和出租的功能，人们有想卖的书籍可以在此平台申请，平台会帮忙代售，还有的宝宝们，不想购买书籍，此平台提供了租书的功能，不需要购买就可以便宜看到自己想看的书籍啦！！！</p>
					</div>
					<div class="right">
						<div class="contact">
							<p class="title">联系我们</p>
							<p class="phone">电话：0755-23324516</p>
							<p class="email">邮箱：cd.01@oil-com.com</p>
							<p class="email">QQ：1056598469</p>
						</div>
					</div>
				</div>
				<p class="copy">地址：山西省太原市万柏林区下元街道公园时代城2号楼1301</p><br>
			</div>
		</div>	
		
	</div>

	<script type="text/javascript">
		

		var loginUrl = Base64.encode("maker.html");  
		$('.header .nav .right .login').attr('href','./login.html?loginurl='+loginUrl);

		// 点击返回顶部
		$('.rightFrame .placement').on('click', function () {
			$("html,body").animate({
				scrollTop: 0
			}, 1000);
		});

		// 点击预约课程以及点击关闭弹框
		$('.rightFrame .bespoke').on('click', function () {
			$(".appointShadow").css("display","block");
			$(".appoint").css("display","block");
		});	
		$('.appoint .close').on('click', function () {
			$(".appointShadow").css("display","none");
			$(".appoint").css("display","none");
		});


		// 科学实验室数据调用
		makerData();
		function makerData(){
			$.ajax({
                type: "get",
                dataType: "", // submit info
                url: url + '/web/maker',
                success: function (res) {
                    if (!res.resultStatus) {
                        $(".xz-alert").html(res.errorMessage);
                        $('.xz-alert').show();
                        setTimeout(function () {
                            $(".xz-alert").hide();
                        }, 3000);
                        return
					}
					var courseList = "";  //创客课程
					var swcampList = "";  //创客课程 --- 活动回顾


					var courseListArr = res.resultData.courseList;
					var swcampListArr = res.resultData.swcampList;


                    for (var i = 0; i < courseListArr.length; i++) {
						courseList += '<div class="item">' +
							'<img class="img" src="'+ courseListArr[i].picture +'" alt="">' +
							'<div class="shadow">' +
							'<p>'+ courseListArr[i].code +'</p>' +
							'</div></div>'
					}
					for (var i = 0; i < swcampListArr.length; i++) {
						swcampList += '<div class="swiper-slide">' +
							'<img src="'+ swcampListArr[i].picture +'">' +
							'</div>' 
                    }

					
					$(".maker .list1 .container").html(courseList);
					$(".maker .list3 .swiper-wrapper").html(swcampList);

					//创客课堂 ---  夏令营，冬令营活动回顾
					var wheel = new Swiper('.wheel .swiper-container', {
						loop:true,
						navigation: {
							nextEl: '.swiper-button-next',
							prevEl: '.swiper-button-prev',
						},
					});
					
                },
                error: function (e) {
                    $(".xz-alert").html("请求数据失败");
                    $('.xz-alert').show();
                    setTimeout(function () {
                        $(".xz-alert").hide();
                    }, 3000);
                }
			})

			
		}
	</script>		

</body>

</html>